package org.example;

import org.apache.dubbo.config.annotation.DubboReference;
import org.example.service.UserService;
import org.junit.jupiter.api.Test;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class BootConsumerMain {
    @DubboReference(url = "dubbo://222.20.83.141:28080/org.example.service.UserService")
    private UserService userService;
    public static void main(String[] args) {
        SpringApplication.run(BootConsumerMain.class,args);
    }

    @Test
    public void test() throws Exception{
        String login = userService.login("admin", "123456");
        System.out.println(login);
    }
}

